package com.aaa.service;

import com.aaa.dto.AdminDto;
import com.aaa.dto.AdminRoleDto;
import com.aaa.dto.UserDto;
import com.aaa.pojo.DefaultMsg;
import com.aaa.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 用户管理service接口
 */
public interface UserService extends IService<User> {

    List<UserDto> findAllUser();

    List<AdminDto> findAllAdminUser();

    List<AdminRoleDto> findAdminRoleList();

    DefaultMsg updateRoleByAdminId(Integer userId, Integer roleId);
}
